#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<int> findEvenNumbers(vector<int>& digits) {
        vector<int> v1;
        for (int i = 0; i < digits.size(); ++i)
        {
            for (int j = 0; j < digits.size(); ++j)
            {
                if (j != i)
                {
                    for (int p = 0; p < digits.size(); ++p)
                    {
                        if (p != i && p != j)
                        {
                            int tmp = digits[i] * 100 + digits[j] * 10 + digits[p];
                            if (tmp >= 100 && tmp % 2 == 0)
                            {
                                v1.push_back(tmp);
                            }
                        }
                    }
                }
            }
        }

        sort(v1.begin(), v1.end());
        int newsize = unique(v1.begin(), v1.end()) - v1.begin();
        v1.resize(newsize);

        return v1;
    }
};

